package com.finger.common.constant;

public class ProductConstant {

    public enum AttrEnume {
        ATTR_TYPE_SALE(0, "sale"),
        ATTR_TYPE_BASE(1, "base"),
        ATTR_TYPE_DOUBLE(2, "double");

        private int code;
        private String msg;

        AttrEnume(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }

    public enum ProductStatus {
        PRODUCT_NEW(0, "新建商品"),
        PRODUCT_UP(1, "商品上架"),
        PRODUCT_DOWN(2, "商品下架");

        private Integer code;
        private String msg;

        ProductStatus(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }
}
